class CreateEshopContents < ActiveRecord::Migration
  def change
    create_table :eshop_contents, :force => true do |t|
      t.text   :html,                   :null => false
      t.string :name,     :limit => 32, :null => false
      t.string :presentation, :limit => 32, :null => false
      t.string :title,    :limit => 200,:null => true
      t.string :group,    :limit => 30, :null => true
      t.timestamps
    end

    add_index :eshop_contents, :name, :unique => true
  end
end